
extern "C" {
    fn __errno_location() -> *mut i32;
    fn __ctype_b_loc() -> *mut *const u16;
    fn memcpy(_: *mut (), _: *const (), _: u64) -> *mut ();
    fn strlen(_: *const i8) -> u64;
    fn calloc(_: u64, _: u64) -> *mut ();
    fn realloc(_: *mut (), _: u64) -> *mut ();
}
pub type __u_char = u8;
pub type __u_int = u32;
pub type u_char = __u_char;
pub type u_int = __u_int;
pub type size_t = u64;
pub type C2RustUnnamed = u32;
pub const _ISalnum: C2RustUnnamed = 8;
pub const _ISpunct: C2RustUnnamed = 4;
pub const _IScntrl: C2RustUnnamed = 2;
pub const _ISblank: C2RustUnnamed = 1;
pub const _ISgraph: C2RustUnnamed = 32768;
pub const _ISprint: C2RustUnnamed = 16384;
pub const _ISspace: C2RustUnnamed = 8192;
pub const _ISxdigit: C2RustUnnamed = 4096;
pub const _ISdigit: C2RustUnnamed = 2048;
pub const _ISalpha: C2RustUnnamed = 1024;
pub const _ISlower: C2RustUnnamed = 512;
pub const _ISupper: C2RustUnnamed = 256;
#[no_mangle]
pub extern "C" fn vis(mut dst: *mut i8, mut c: i32, mut flag: i32, mut nextc: i32) -> *mut i8 {
    let mut current_block: u64;
    if (c == '\\' as i32 || flag & 0x400 as i32 == 0)
        && (c as u_int <= (127 as i32 * 2 + 1) as u32
            && c as u_char as i32 & !(0x7f as i32) == 0
            && (c != '*' as i32 && c != '?' as i32 && c != '[' as i32 && c != '#' as i32
                || flag & 0x100 as i32 == 0)
            && (unsafe { *(*__ctype_b_loc()).offset(c as u_char as i32 as isize) }) as i32
                & _ISgraph as i32 as u16 as i32
                != 0
            || flag & 0x4 as i32 == 0 && c == ' ' as i32
            || flag & 0x8 as i32 == 0 && c == '\t' as i32
            || flag & 0x10 as i32 == 0 && c == '\n' as i32
            || flag & 0x20 as i32 != 0
                && (c == '\u{8}' as i32
                    || c == '\u{7}' as i32
                    || c == '\r' as i32
                    || (unsafe { *(*__ctype_b_loc()).offset(c as u_char as i32 as isize) }) as i32
                        & _ISgraph as i32 as u16 as i32
                        != 0))
    {
        if c == '"' as i32 && flag & 0x200 as i32 != 0
            || c == '\\' as i32 && flag & 0x40 as i32 == 0
        {
            let fresh0 = dst;
            dst = unsafe { dst.offset(1) };
            (unsafe { *fresh0 = '\\' as i32 as i8 });
        }
        let fresh1 = dst;
        dst = unsafe { dst.offset(1) };
        (unsafe { *fresh1 = c as i8 });
        (unsafe { *dst = '\0' as i32 as i8 });
        return dst;
    }
    if flag & 0x2 as i32 != 0 {
        match c {
            10 => {
                current_block = 5665660885587251624;
                match current_block {
                    5665660885587251624 => {
                        let fresh2 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh2 = '\\' as i32 as i8 });
                        let fresh3 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh3 = 'n' as i32 as i8 });
                    }
                    18308776645317299008 => {
                        let fresh16 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh16 = '\\' as i32 as i8 });
                        let fresh17 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh17 = 's' as i32 as i8 });
                    }
                    611369979167860773 => {
                        let fresh14 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh14 = '\\' as i32 as i8 });
                        let fresh15 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh15 = 'f' as i32 as i8 });
                    }
                    9537528130947485779 => {
                        let fresh12 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh12 = '\\' as i32 as i8 });
                        let fresh13 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh13 = 't' as i32 as i8 });
                    }
                    3887426070177986906 => {
                        let fresh10 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh10 = '\\' as i32 as i8 });
                        let fresh11 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh11 = 'v' as i32 as i8 });
                    }
                    18274990344037410959 => {
                        let fresh8 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh8 = '\\' as i32 as i8 });
                        let fresh9 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh9 = 'a' as i32 as i8 });
                    }
                    17716985647895454004 => {
                        let fresh6 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh6 = '\\' as i32 as i8 });
                        let fresh7 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh7 = 'b' as i32 as i8 });
                    }
                    8603738581102801857 => {
                        let fresh4 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh4 = '\\' as i32 as i8 });
                        let fresh5 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh5 = 'r' as i32 as i8 });
                    }
                    _ => {
                        let fresh18 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh18 = '\\' as i32 as i8 });
                        let fresh19 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh19 = '0' as i32 as i8 });
                        if nextc as u_char as i32 >= '0' as i32
                            && nextc as u_char as i32 <= '7' as i32
                        {
                            let fresh20 = dst;
                            dst = unsafe { dst.offset(1) };
                            (unsafe { *fresh20 = '0' as i32 as i8 });
                            let fresh21 = dst;
                            dst = unsafe { dst.offset(1) };
                            (unsafe { *fresh21 = '0' as i32 as i8 });
                        }
                    }
                }
                current_block = 16657656929006619579;
            }
            13 => {
                current_block = 8603738581102801857;
                match current_block {
                    5665660885587251624 => {
                        let fresh2 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh2 = '\\' as i32 as i8 });
                        let fresh3 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh3 = 'n' as i32 as i8 });
                    }
                    18308776645317299008 => {
                        let fresh16 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh16 = '\\' as i32 as i8 });
                        let fresh17 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh17 = 's' as i32 as i8 });
                    }
                    611369979167860773 => {
                        let fresh14 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh14 = '\\' as i32 as i8 });
                        let fresh15 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh15 = 'f' as i32 as i8 });
                    }
                    9537528130947485779 => {
                        let fresh12 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh12 = '\\' as i32 as i8 });
                        let fresh13 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh13 = 't' as i32 as i8 });
                    }
                    3887426070177986906 => {
                        let fresh10 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh10 = '\\' as i32 as i8 });
                        let fresh11 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh11 = 'v' as i32 as i8 });
                    }
                    18274990344037410959 => {
                        let fresh8 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh8 = '\\' as i32 as i8 });
                        let fresh9 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh9 = 'a' as i32 as i8 });
                    }
                    17716985647895454004 => {
                        let fresh6 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh6 = '\\' as i32 as i8 });
                        let fresh7 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh7 = 'b' as i32 as i8 });
                    }
                    8603738581102801857 => {
                        let fresh4 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh4 = '\\' as i32 as i8 });
                        let fresh5 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh5 = 'r' as i32 as i8 });
                    }
                    _ => {
                        let fresh18 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh18 = '\\' as i32 as i8 });
                        let fresh19 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh19 = '0' as i32 as i8 });
                        if nextc as u_char as i32 >= '0' as i32
                            && nextc as u_char as i32 <= '7' as i32
                        {
                            let fresh20 = dst;
                            dst = unsafe { dst.offset(1) };
                            (unsafe { *fresh20 = '0' as i32 as i8 });
                            let fresh21 = dst;
                            dst = unsafe { dst.offset(1) };
                            (unsafe { *fresh21 = '0' as i32 as i8 });
                        }
                    }
                }
                current_block = 16657656929006619579;
            }
            8 => {
                current_block = 17716985647895454004;
                match current_block {
                    5665660885587251624 => {
                        let fresh2 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh2 = '\\' as i32 as i8 });
                        let fresh3 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh3 = 'n' as i32 as i8 });
                    }
                    18308776645317299008 => {
                        let fresh16 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh16 = '\\' as i32 as i8 });
                        let fresh17 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh17 = 's' as i32 as i8 });
                    }
                    611369979167860773 => {
                        let fresh14 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh14 = '\\' as i32 as i8 });
                        let fresh15 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh15 = 'f' as i32 as i8 });
                    }
                    9537528130947485779 => {
                        let fresh12 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh12 = '\\' as i32 as i8 });
                        let fresh13 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh13 = 't' as i32 as i8 });
                    }
                    3887426070177986906 => {
                        let fresh10 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh10 = '\\' as i32 as i8 });
                        let fresh11 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh11 = 'v' as i32 as i8 });
                    }
                    18274990344037410959 => {
                        let fresh8 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh8 = '\\' as i32 as i8 });
                        let fresh9 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh9 = 'a' as i32 as i8 });
                    }
                    17716985647895454004 => {
                        let fresh6 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh6 = '\\' as i32 as i8 });
                        let fresh7 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh7 = 'b' as i32 as i8 });
                    }
                    8603738581102801857 => {
                        let fresh4 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh4 = '\\' as i32 as i8 });
                        let fresh5 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh5 = 'r' as i32 as i8 });
                    }
                    _ => {
                        let fresh18 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh18 = '\\' as i32 as i8 });
                        let fresh19 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh19 = '0' as i32 as i8 });
                        if nextc as u_char as i32 >= '0' as i32
                            && nextc as u_char as i32 <= '7' as i32
                        {
                            let fresh20 = dst;
                            dst = unsafe { dst.offset(1) };
                            (unsafe { *fresh20 = '0' as i32 as i8 });
                            let fresh21 = dst;
                            dst = unsafe { dst.offset(1) };
                            (unsafe { *fresh21 = '0' as i32 as i8 });
                        }
                    }
                }
                current_block = 16657656929006619579;
            }
            7 => {
                current_block = 18274990344037410959;
                match current_block {
                    5665660885587251624 => {
                        let fresh2 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh2 = '\\' as i32 as i8 });
                        let fresh3 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh3 = 'n' as i32 as i8 });
                    }
                    18308776645317299008 => {
                        let fresh16 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh16 = '\\' as i32 as i8 });
                        let fresh17 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh17 = 's' as i32 as i8 });
                    }
                    611369979167860773 => {
                        let fresh14 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh14 = '\\' as i32 as i8 });
                        let fresh15 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh15 = 'f' as i32 as i8 });
                    }
                    9537528130947485779 => {
                        let fresh12 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh12 = '\\' as i32 as i8 });
                        let fresh13 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh13 = 't' as i32 as i8 });
                    }
                    3887426070177986906 => {
                        let fresh10 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh10 = '\\' as i32 as i8 });
                        let fresh11 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh11 = 'v' as i32 as i8 });
                    }
                    18274990344037410959 => {
                        let fresh8 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh8 = '\\' as i32 as i8 });
                        let fresh9 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh9 = 'a' as i32 as i8 });
                    }
                    17716985647895454004 => {
                        let fresh6 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh6 = '\\' as i32 as i8 });
                        let fresh7 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh7 = 'b' as i32 as i8 });
                    }
                    8603738581102801857 => {
                        let fresh4 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh4 = '\\' as i32 as i8 });
                        let fresh5 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh5 = 'r' as i32 as i8 });
                    }
                    _ => {
                        let fresh18 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh18 = '\\' as i32 as i8 });
                        let fresh19 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh19 = '0' as i32 as i8 });
                        if nextc as u_char as i32 >= '0' as i32
                            && nextc as u_char as i32 <= '7' as i32
                        {
                            let fresh20 = dst;
                            dst = unsafe { dst.offset(1) };
                            (unsafe { *fresh20 = '0' as i32 as i8 });
                            let fresh21 = dst;
                            dst = unsafe { dst.offset(1) };
                            (unsafe { *fresh21 = '0' as i32 as i8 });
                        }
                    }
                }
                current_block = 16657656929006619579;
            }
            11 => {
                current_block = 3887426070177986906;
                match current_block {
                    5665660885587251624 => {
                        let fresh2 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh2 = '\\' as i32 as i8 });
                        let fresh3 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh3 = 'n' as i32 as i8 });
                    }
                    18308776645317299008 => {
                        let fresh16 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh16 = '\\' as i32 as i8 });
                        let fresh17 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh17 = 's' as i32 as i8 });
                    }
                    611369979167860773 => {
                        let fresh14 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh14 = '\\' as i32 as i8 });
                        let fresh15 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh15 = 'f' as i32 as i8 });
                    }
                    9537528130947485779 => {
                        let fresh12 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh12 = '\\' as i32 as i8 });
                        let fresh13 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh13 = 't' as i32 as i8 });
                    }
                    3887426070177986906 => {
                        let fresh10 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh10 = '\\' as i32 as i8 });
                        let fresh11 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh11 = 'v' as i32 as i8 });
                    }
                    18274990344037410959 => {
                        let fresh8 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh8 = '\\' as i32 as i8 });
                        let fresh9 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh9 = 'a' as i32 as i8 });
                    }
                    17716985647895454004 => {
                        let fresh6 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh6 = '\\' as i32 as i8 });
                        let fresh7 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh7 = 'b' as i32 as i8 });
                    }
                    8603738581102801857 => {
                        let fresh4 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh4 = '\\' as i32 as i8 });
                        let fresh5 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh5 = 'r' as i32 as i8 });
                    }
                    _ => {
                        let fresh18 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh18 = '\\' as i32 as i8 });
                        let fresh19 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh19 = '0' as i32 as i8 });
                        if nextc as u_char as i32 >= '0' as i32
                            && nextc as u_char as i32 <= '7' as i32
                        {
                            let fresh20 = dst;
                            dst = unsafe { dst.offset(1) };
                            (unsafe { *fresh20 = '0' as i32 as i8 });
                            let fresh21 = dst;
                            dst = unsafe { dst.offset(1) };
                            (unsafe { *fresh21 = '0' as i32 as i8 });
                        }
                    }
                }
                current_block = 16657656929006619579;
            }
            9 => {
                current_block = 9537528130947485779;
                match current_block {
                    5665660885587251624 => {
                        let fresh2 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh2 = '\\' as i32 as i8 });
                        let fresh3 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh3 = 'n' as i32 as i8 });
                    }
                    18308776645317299008 => {
                        let fresh16 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh16 = '\\' as i32 as i8 });
                        let fresh17 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh17 = 's' as i32 as i8 });
                    }
                    611369979167860773 => {
                        let fresh14 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh14 = '\\' as i32 as i8 });
                        let fresh15 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh15 = 'f' as i32 as i8 });
                    }
                    9537528130947485779 => {
                        let fresh12 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh12 = '\\' as i32 as i8 });
                        let fresh13 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh13 = 't' as i32 as i8 });
                    }
                    3887426070177986906 => {
                        let fresh10 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh10 = '\\' as i32 as i8 });
                        let fresh11 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh11 = 'v' as i32 as i8 });
                    }
                    18274990344037410959 => {
                        let fresh8 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh8 = '\\' as i32 as i8 });
                        let fresh9 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh9 = 'a' as i32 as i8 });
                    }
                    17716985647895454004 => {
                        let fresh6 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh6 = '\\' as i32 as i8 });
                        let fresh7 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh7 = 'b' as i32 as i8 });
                    }
                    8603738581102801857 => {
                        let fresh4 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh4 = '\\' as i32 as i8 });
                        let fresh5 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh5 = 'r' as i32 as i8 });
                    }
                    _ => {
                        let fresh18 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh18 = '\\' as i32 as i8 });
                        let fresh19 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh19 = '0' as i32 as i8 });
                        if nextc as u_char as i32 >= '0' as i32
                            && nextc as u_char as i32 <= '7' as i32
                        {
                            let fresh20 = dst;
                            dst = unsafe { dst.offset(1) };
                            (unsafe { *fresh20 = '0' as i32 as i8 });
                            let fresh21 = dst;
                            dst = unsafe { dst.offset(1) };
                            (unsafe { *fresh21 = '0' as i32 as i8 });
                        }
                    }
                }
                current_block = 16657656929006619579;
            }
            12 => {
                current_block = 611369979167860773;
                match current_block {
                    5665660885587251624 => {
                        let fresh2 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh2 = '\\' as i32 as i8 });
                        let fresh3 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh3 = 'n' as i32 as i8 });
                    }
                    18308776645317299008 => {
                        let fresh16 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh16 = '\\' as i32 as i8 });
                        let fresh17 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh17 = 's' as i32 as i8 });
                    }
                    611369979167860773 => {
                        let fresh14 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh14 = '\\' as i32 as i8 });
                        let fresh15 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh15 = 'f' as i32 as i8 });
                    }
                    9537528130947485779 => {
                        let fresh12 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh12 = '\\' as i32 as i8 });
                        let fresh13 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh13 = 't' as i32 as i8 });
                    }
                    3887426070177986906 => {
                        let fresh10 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh10 = '\\' as i32 as i8 });
                        let fresh11 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh11 = 'v' as i32 as i8 });
                    }
                    18274990344037410959 => {
                        let fresh8 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh8 = '\\' as i32 as i8 });
                        let fresh9 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh9 = 'a' as i32 as i8 });
                    }
                    17716985647895454004 => {
                        let fresh6 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh6 = '\\' as i32 as i8 });
                        let fresh7 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh7 = 'b' as i32 as i8 });
                    }
                    8603738581102801857 => {
                        let fresh4 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh4 = '\\' as i32 as i8 });
                        let fresh5 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh5 = 'r' as i32 as i8 });
                    }
                    _ => {
                        let fresh18 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh18 = '\\' as i32 as i8 });
                        let fresh19 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh19 = '0' as i32 as i8 });
                        if nextc as u_char as i32 >= '0' as i32
                            && nextc as u_char as i32 <= '7' as i32
                        {
                            let fresh20 = dst;
                            dst = unsafe { dst.offset(1) };
                            (unsafe { *fresh20 = '0' as i32 as i8 });
                            let fresh21 = dst;
                            dst = unsafe { dst.offset(1) };
                            (unsafe { *fresh21 = '0' as i32 as i8 });
                        }
                    }
                }
                current_block = 16657656929006619579;
            }
            32 => {
                current_block = 18308776645317299008;
                match current_block {
                    5665660885587251624 => {
                        let fresh2 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh2 = '\\' as i32 as i8 });
                        let fresh3 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh3 = 'n' as i32 as i8 });
                    }
                    18308776645317299008 => {
                        let fresh16 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh16 = '\\' as i32 as i8 });
                        let fresh17 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh17 = 's' as i32 as i8 });
                    }
                    611369979167860773 => {
                        let fresh14 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh14 = '\\' as i32 as i8 });
                        let fresh15 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh15 = 'f' as i32 as i8 });
                    }
                    9537528130947485779 => {
                        let fresh12 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh12 = '\\' as i32 as i8 });
                        let fresh13 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh13 = 't' as i32 as i8 });
                    }
                    3887426070177986906 => {
                        let fresh10 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh10 = '\\' as i32 as i8 });
                        let fresh11 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh11 = 'v' as i32 as i8 });
                    }
                    18274990344037410959 => {
                        let fresh8 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh8 = '\\' as i32 as i8 });
                        let fresh9 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh9 = 'a' as i32 as i8 });
                    }
                    17716985647895454004 => {
                        let fresh6 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh6 = '\\' as i32 as i8 });
                        let fresh7 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh7 = 'b' as i32 as i8 });
                    }
                    8603738581102801857 => {
                        let fresh4 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh4 = '\\' as i32 as i8 });
                        let fresh5 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh5 = 'r' as i32 as i8 });
                    }
                    _ => {
                        let fresh18 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh18 = '\\' as i32 as i8 });
                        let fresh19 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh19 = '0' as i32 as i8 });
                        if nextc as u_char as i32 >= '0' as i32
                            && nextc as u_char as i32 <= '7' as i32
                        {
                            let fresh20 = dst;
                            dst = unsafe { dst.offset(1) };
                            (unsafe { *fresh20 = '0' as i32 as i8 });
                            let fresh21 = dst;
                            dst = unsafe { dst.offset(1) };
                            (unsafe { *fresh21 = '0' as i32 as i8 });
                        }
                    }
                }
                current_block = 16657656929006619579;
            }
            0 => {
                current_block = 15972197252646490438;
                match current_block {
                    5665660885587251624 => {
                        let fresh2 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh2 = '\\' as i32 as i8 });
                        let fresh3 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh3 = 'n' as i32 as i8 });
                    }
                    18308776645317299008 => {
                        let fresh16 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh16 = '\\' as i32 as i8 });
                        let fresh17 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh17 = 's' as i32 as i8 });
                    }
                    611369979167860773 => {
                        let fresh14 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh14 = '\\' as i32 as i8 });
                        let fresh15 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh15 = 'f' as i32 as i8 });
                    }
                    9537528130947485779 => {
                        let fresh12 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh12 = '\\' as i32 as i8 });
                        let fresh13 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh13 = 't' as i32 as i8 });
                    }
                    3887426070177986906 => {
                        let fresh10 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh10 = '\\' as i32 as i8 });
                        let fresh11 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh11 = 'v' as i32 as i8 });
                    }
                    18274990344037410959 => {
                        let fresh8 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh8 = '\\' as i32 as i8 });
                        let fresh9 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh9 = 'a' as i32 as i8 });
                    }
                    17716985647895454004 => {
                        let fresh6 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh6 = '\\' as i32 as i8 });
                        let fresh7 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh7 = 'b' as i32 as i8 });
                    }
                    8603738581102801857 => {
                        let fresh4 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh4 = '\\' as i32 as i8 });
                        let fresh5 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh5 = 'r' as i32 as i8 });
                    }
                    _ => {
                        let fresh18 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh18 = '\\' as i32 as i8 });
                        let fresh19 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh19 = '0' as i32 as i8 });
                        if nextc as u_char as i32 >= '0' as i32
                            && nextc as u_char as i32 <= '7' as i32
                        {
                            let fresh20 = dst;
                            dst = unsafe { dst.offset(1) };
                            (unsafe { *fresh20 = '0' as i32 as i8 });
                            let fresh21 = dst;
                            dst = unsafe { dst.offset(1) };
                            (unsafe { *fresh21 = '0' as i32 as i8 });
                        }
                    }
                }
                current_block = 16657656929006619579;
            }
            _ => {
                current_block = 15345278821338558188;
            }
        }
    } else {
        current_block = 15345278821338558188;
    }
    match current_block {
        15345278821338558188 => {
            if c & 0o177 as i32 == ' ' as i32
                || flag & 0x1 as i32 != 0
                || flag & 0x100 as i32 != 0
                    && (c == '*' as i32 || c == '?' as i32 || c == '[' as i32 || c == '#' as i32)
            {
                let fresh22 = dst;
                dst = unsafe { dst.offset(1) };
                (unsafe { *fresh22 = '\\' as i32 as i8 });
                let fresh23 = dst;
                dst = unsafe { dst.offset(1) };
                (unsafe {
                    *fresh23 = ((c as u_char as i32 >> 6 & 0o7 as i32) + '0' as i32) as i8
                });
                let fresh24 = dst;
                dst = unsafe { dst.offset(1) };
                (unsafe {
                    *fresh24 = ((c as u_char as i32 >> 3 & 0o7 as i32) + '0' as i32) as i8
                });
                let fresh25 = dst;
                dst = unsafe { dst.offset(1) };
                (unsafe { *fresh25 = ((c as u_char as i32 & 0o7 as i32) + '0' as i32) as i8 });
            } else {
                if flag & 0x40 as i32 == 0 {
                    let fresh26 = dst;
                    dst = unsafe { dst.offset(1) };
                    (unsafe { *fresh26 = '\\' as i32 as i8 });
                }
                if c & 0o200 as i32 != 0 {
                    c &= 0o177 as i32;
                    let fresh27 = dst;
                    dst = unsafe { dst.offset(1) };
                    (unsafe { *fresh27 = 'M' as i32 as i8 });
                }
                if (unsafe { *(*__ctype_b_loc()).offset(c as u_char as i32 as isize) }) as i32
                    & _IScntrl as i32 as u16 as i32
                    != 0
                {
                    let fresh28 = dst;
                    dst = unsafe { dst.offset(1) };
                    (unsafe { *fresh28 = '^' as i32 as i8 });
                    if c == 0o177 as i32 {
                        let fresh29 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh29 = '?' as i32 as i8 });
                    } else {
                        let fresh30 = dst;
                        dst = unsafe { dst.offset(1) };
                        (unsafe { *fresh30 = (c + '@' as i32) as i8 });
                    }
                } else {
                    let fresh31 = dst;
                    dst = unsafe { dst.offset(1) };
                    (unsafe { *fresh31 = '-' as i32 as i8 });
                    let fresh32 = dst;
                    dst = unsafe { dst.offset(1) };
                    (unsafe { *fresh32 = c as i8 });
                }
            }
        }
        _ => {}
    }
    (unsafe { *dst = '\0' as i32 as i8 });
    return dst;
}
#[no_mangle]
pub extern "C" fn strvis(mut dst: *mut i8, mut src: *const i8, mut flag: i32) -> i32 {
    let mut c: i8 = 0;
    let mut start: *mut i8 = std::ptr::null_mut::<i8>();
    start = dst;
    loop {
        c = unsafe { *src };
        if c == 0 {
            break;
        }
        src = unsafe { src.offset(1) };
        dst = vis(dst, c as i32, flag, (unsafe { *src }) as i32);
    }
    (unsafe { *dst = '\0' as i32 as i8 });
    return (unsafe { dst.offset_from(start) }) as i64 as i32;
}
#[no_mangle]
pub extern "C" fn strnvis(
    mut dst: *mut i8,
    mut src: *const i8,
    mut siz: size_t,
    mut flag: i32,
) -> i32 {
    let mut start: *mut i8 = std::ptr::null_mut::<i8>();
    let mut end: *mut i8 = std::ptr::null_mut::<i8>();
    let mut tbuf: [i8; 5] = [0; 5];
    let mut c: i32 = 0;
    let mut i: i32 = 0;
    i = 0;
    start = dst;
    end = unsafe { start.offset(siz as isize).offset(-(1 as i32 as isize)) };
    loop {
        c = (unsafe { *src }) as i32;
        if !(c != 0 && dst < end) {
            break;
        }
        if (c == '\\' as i32 || flag & 0x400 as i32 == 0)
            && (c as u_int <= (127 as i32 * 2 + 1) as u32
                && c as u_char as i32 & !(0x7f as i32) == 0
                && (c != '*' as i32 && c != '?' as i32 && c != '[' as i32 && c != '#' as i32
                    || flag & 0x100 as i32 == 0)
                && (unsafe { *(*__ctype_b_loc()).offset(c as u_char as i32 as isize) }) as i32
                    & _ISgraph as i32 as u16 as i32
                    != 0
                || flag & 0x4 as i32 == 0 && c == ' ' as i32
                || flag & 0x8 as i32 == 0 && c == '\t' as i32
                || flag & 0x10 as i32 == 0 && c == '\n' as i32
                || flag & 0x20 as i32 != 0
                    && (c == '\u{8}' as i32
                        || c == '\u{7}' as i32
                        || c == '\r' as i32
                        || (unsafe { *(*__ctype_b_loc()).offset(c as u_char as i32 as isize) })
                            as i32
                            & _ISgraph as i32 as u16 as i32
                            != 0))
        {
            if c == '"' as i32 && flag & 0x200 as i32 != 0
                || c == '\\' as i32 && flag & 0x40 as i32 == 0
            {
                if (unsafe { dst.offset(1 as i32 as isize) }) >= end {
                    i = 2;
                    break;
                } else {
                    let fresh33 = dst;
                    dst = unsafe { dst.offset(1) };
                    (unsafe { *fresh33 = '\\' as i32 as i8 });
                }
            }
            i = 1;
            let fresh34 = dst;
            dst = unsafe { dst.offset(1) };
            (unsafe { *fresh34 = c as i8 });
            src = unsafe { src.offset(1) };
        } else {
            src = unsafe { src.offset(1) };
            i = (unsafe {
                (vis(tbuf.as_mut_ptr(), c, flag, *src as i32)).offset_from(tbuf.as_mut_ptr())
            }) as i64 as i32;
            if (unsafe { dst.offset(i as isize) }) <= end {
                (unsafe {
                    memcpy(
                        dst as *mut (),
                        tbuf.as_mut_ptr() as *const (),
                        i as u64,
                    )
                });
                dst = unsafe { dst.offset(i as isize) };
            } else {
                src = unsafe { src.offset(-1) };
                break;
            }
        }
    }
    if siz > 0 as u64 {
        (unsafe { *dst = '\0' as i32 as i8 });
    }
    if (unsafe { dst.offset(i as isize) }) > end {
        loop {
            c = (unsafe { *src }) as i32;
            if c == 0 {
                break;
            }
            src = unsafe { src.offset(1) };
            dst = unsafe {
                dst.offset(
                    (vis(tbuf.as_mut_ptr(), c, flag, *src as i32)).offset_from(tbuf.as_mut_ptr())
                        as i64 as isize,
                )
            };
        }
    }
    return (unsafe { dst.offset_from(start) }) as i64 as i32;
}
#[no_mangle]
pub extern "C" fn stravis(mut outp: *mut *mut i8, mut src: *const i8, mut flag: i32) -> i32 {
    let mut buf: *mut i8 = std::ptr::null_mut::<i8>();
    let mut len: i32 = 0;
    let mut serrno: i32 = 0;
    buf = (unsafe { calloc(4 as i32 as u64, (strlen(src)).wrapping_add(1 as i32 as u64)) })
        as *mut i8;
    if buf.is_null() {
        return -(1 as i32);
    }
    len = strvis(buf, src, flag);
    serrno = unsafe { *__errno_location() };
    (unsafe { *outp = realloc(buf as *mut (), (len + 1) as u64) as *mut i8 });
    if (unsafe { *outp }).is_null() {
        (unsafe { *outp = buf });
        (unsafe { *__errno_location() = serrno });
    }
    return len;
}
#[no_mangle]
pub extern "C" fn strvisx(
    mut dst: *mut i8,
    mut src: *const i8,
    mut len: size_t,
    mut flag: i32,
) -> i32 {
    let mut c: i8 = 0;
    let mut start: *mut i8 = std::ptr::null_mut::<i8>();
    start = dst;
    while len > 1 as u64 {
        c = unsafe { *src };
        src = unsafe { src.offset(1) };
        dst = vis(dst, c as i32, flag, (unsafe { *src }) as i32);
        len = len.wrapping_sub(1);
    }
    if len != 0 {
        dst = vis(dst, (unsafe { *src }) as i32, flag, '\0' as i32);
    }
    (unsafe { *dst = '\0' as i32 as i8 });
    return (unsafe { dst.offset_from(start) }) as i64 as i32;
}
